package com.ftwj.demo.modular.entity;

import java.io.Serializable;
import java.util.Date;

import com.ftwj.demo.base.annotation.Column;
import com.ftwj.demo.base.annotation.Order;
import com.ftwj.demo.base.annotation.Primarykey;
import com.ftwj.demo.base.annotation.QueryTable;
import com.ftwj.demo.base.annotation.Table;
import com.ftwj.demo.base.constant.Const;
import com.ftwj.demo.base.constant.QueryModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
* <p>Title: FileBean</p>  
* <p>Description: 描述</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSli
* @date 2020年04月16日 17:07:11
* @version V1.0
*/
@Data
@Table(name="tb_file")
@Accessors(chain=true)
@ApiModel(value="FileBean对象", description="")
public class FileBean implements Serializable {

	/** serialVersionUID*/ 
	private static final long serialVersionUID = 1L;
	
 	@Primarykey(name="file_id",auto=false)
	@ApiModelProperty(value = "文件主键")
	private String fileId;
	@ApiModelProperty(value = "文件名")
	@QueryTable(model=QueryModel.ALL_LIKE)
	private String name;
	@ApiModelProperty(value = "模块")
	private String modular;
	@ApiModelProperty(value = "文件描述")
	private String description;
	@ApiModelProperty(value = "文件内容")
	private String content;
	@ApiModelProperty(value = "缩略图路径")
	private String  thumb;
	@QueryTable(model=QueryModel.LEFT_LIKE)
	@ApiModelProperty(value = "文件路径")
	private String path;
	@ApiModelProperty(value = "请求地址")
	private String url;
	@ApiModelProperty(value = "文件大小(单位:KB)")
	private Long size;
	@ApiModelProperty(value = "文件类型（1.文档，2.音频，3.视频，4.图片，5.二进制执行文件，6.压缩包，7.其他）")
	private Integer type;
	@ApiModelProperty(value = "文件后缀")
	private String suffix;
	@ApiModelProperty(value = "文件下载量")
	private Integer download;
	@ApiModelProperty(value = "文件浏览量")
	private Integer views;
	@ApiModelProperty(value = "文件同步状态")
	private Integer oss;
	@ApiModelProperty(value = "文件数据同步状态")
	private Integer solr;
	@Column(name="create_user")
	@ApiModelProperty(value = "文件创建人")
	private Integer createUser;
	@Column(name="create_time")
	@ApiModelProperty(value = "文件创建时间",hidden = true)
	@Order(order=Const.ORDER_DESC,sort=1)
	private Date createTime;
	@ApiModelProperty(value = "文件状态")
	@Order(order=Const.ORDER_DESC,sort=0)
	private Integer state;
	
}